bugfix in DP basecase