replace program -1 test with 0.