fixed bug in generating address PDF