fix pdf graph issue