fix bug when contains no programs