fix tilestuff