fix conditions on belongsTo