bug fix to unset gateway properly