fixed a bug in the address generation