bug fix in activity monitor class