fixed error in map