fix gradient direction (progress bar)