patch for has_one attributes