fix gallery and admin