Fixed bug in map colission checking