fix active record