Bug fix for resoruce monitor