fix arduino runtime error