fixed crash in map