Fixing bug with showing progress bar on ios.