Fixed small issues with recognize