fixed Safari issue with .getBBox()