fixed a viewport display bug