fixed map size bug