fix has_one and fetch_by_uniq_key issue