Backported to progressbar 2.2