fixes issue77 although i guess it was already fixed before. --HG-- branch : trunk
--HG-- branch : trunk