fixed addresschanged event with related functions