Serial write is working, but the message is delayed