fix scope in method call