bug with gallery