Fix editnumberofreleases functionality bug