fixed bug in monitor