fix minor bugs in threaded Mapper