Gallery plugin bug fix

Reopen problems fixed