Fix try block, test your project and some small things in PDF creation