fixed map iteration bug
compile