Fixed null pointer exception with search command.