fix percentage bar value calc