bug fixes for tiles