hack to get progressbar to update kind of right