active record fix