"Set tab" and search not working properly