fix source address detection