bug on search fixed

fixed c++ issue, etc