Fixed bug after smart search