fixed potential negative message remaining counts