fix message.previous bug