fixed infinite loop and skip x programs