fix view bug => update view only after adjusting ratio