Fixed message object getter function