fix errors of add gallery categories