Bug fix at save_category method