Fixes https://github.com/DmitryBaranovskiy/raphael/issues/841