Fixed Bug in ota script