Fixed bug with single gallery redirect loop