Fixed getTile for negative coordinates