Fixed bug on existing categories functionality