Fixed some message read logic.