fixed pdf files not appearing correctly