Fixed an issue that was causing the SPEC_ID variable to have the wrong value.