Bug fix for Export PDf