[ fix ] initialize message queue before using messages