fix recoginize bugs