fixed bug if no programs or variables exist
Merge pull request #14 from hobbyquaker/master

fixed bug if no programs or variables exist