Correction of the back link in the gallery with panel