Fixed deletion issue in the categories management.