Fixed bug in gallery edititem with showing categories