Fixed bug in new tile mode