catch active record fix