Gallery bug fixed