fixed masking for tileset