Fixed zoffset in 2d view. Fixed another division by zero issue.