fixed mapping problem with 1 thread