Fixed the search direction of * and #