fixed error "Access to undefined property Categories::id"