fix the admin issue when add a gallery