Fixed msgStack bug on server.