fixed issue causing ip not to be matched/reversed