`sctx->grid.size` was only updated while the constraint was not enabled. This was causing division by zero.