small fix for wrong search mode