bug fix for dynprog