Fixed parseMessage