remove gallery bug