Fixed crash when no curves detected on capture