Fix miner problem in Gallery page