fixed method setPercentage in class Statusbar