Fix inputs after has_many.