Fixed bug on getIP