Please check the solution here: Spitz x3000 - potential bug in modem.sh check_ip(). It seems you experience similar issues.