fixed issue with loading indicator in PDF Viewer