Fix compilation error in setAddress