fix 0 assignment to view