Fixing buggy pdf