fixed bug in search state manager