Instead of just disabling the cyclic bit of the flag, the code reset the whole flag to -2 which doesn't really make sense. It cause a problem because the "custom knots" bit was set but there weren't any allocated custom knots. Pull Request: https://projects.blender.org/blender/blender/pulls/145580