Fixed save entity in categories