fix has_one/belongs_to nested with :primary_key option