Fix for bind ip address logic