Another fix for the tileset slot hack

See the last commit. Thanks again, Hippo.