fix rendering negative progressbar value

#425