Fixed a bug that froze if whitespaces were in svg paths