fixed a bug for message