fixed issue with searching