Fix minor bug with expanding call to method in anonymous class.