bug fix for rpm stage