bug fix pdf weight