Fix get message by reference