Fix the sync getter for hasOne and belongsTo