Quick fix: nextNegative was not reset