Fix bug on updateMapCollision method