Fixed bug that segfault while abnormal map is given