fixed map error bug