fix active record.