fixed read message bug

Fixed bug that was causing the same message to be viewed even though a
different message was selected.