issue #601 categories where not being saved