fix displaying some messages