Quick fix for globalUnreadCount

Quick fix which resets globalUnreadCount if lower than 0. Related to
issue #4. Still... I really need to rewrite the code for managing it.