fix problem of undefined monitoring activities