fix bug on gallery modal
fix bug on front-office edition