fixes viewBoxRatio undefined error introduced in d05e474