Fix IP output in errors
Fix output to use proper variable