fixed getTiles