CODE: Fixed bug in do_unread

Thanks Dave.