Fixed small bug in loading parent categories