fix validation of program setting