Fixed scope of monitor method call