Fixed non-final variable access from an anonymous class.