Arduino Secure: bugs fix