Fixes progress bar and page switch animations