Fix crash issue when saving recorded path.