//small fix on pdf generate