Dealt with error on empty search