Gallery fix