Fixed issue that cause commands not to send
Fixed stack trace. Android docs are wrong...