fix rendering negative progressbar value