fixed bugs for unexpected input of currentNeedToMap