Worked around https://github.com/DmitryBaranovskiy/raphael/issues/772