Fixed IP grabbing error