bug fix in monitor