fix bug in giving address (address[0])