fix active record dependency