Bugfix in running ObjectMethods declared by global modifications.