active record ext fix