fix path canvas race condition, close #1615