Fix issue when the number of releases is not a multiple of 4