bugfix for code removing sponge layer from shelf mask