Fix error exception caused by typo

[lastMesage] corrected to [lastMessage]