Fix for search command when cols is not specified.