PDF's not working properly