Fixed a bug where the wrong id was being used for bug links in the environment.