Error in scope example code

Fixed minor error that prevented execution with current scope example code.