Fixed error with editing and deleting categories in administration