Fixed AssertionError on missing curves