Fixed tile to array bug.