fixed a bug for loading message