fixed map bug