Solve upward and downward arrows display problem