Fixing a bug in viewbox