Fixed 'unknown message type' error