fix view position bug