Fixed error when no programs added