fix tile resizing