PDF loading fixed