fixed bug for printing out address.