FIX $has_one relation recognition