little fix for has_one relations