fixed bug related to direct method calls on enum items that are function parameters