Fixed a bug where the program name was only matched once.