Update fix statistics pdf creation