fix the bug for get local IP error