Fix bug in display message wait which caused it to never wait.