fixed issue #50 - category add/edit bug