Fixed the reference to the gallery item