fix address func