Fixing bug in release notes logic