fixed progress bar overlap logic