fixed issue with sending pdf