fixed bug in download pdf action