fixed a viewbug