Fix handling of some programs with missing metadata