Fixing animation in progress bar