Fixed generateAddress in front-end...

...Also fixed angular front-end when connection rejected