fixed last display problem