Correctly initialize message record