fix showing message bugs