Fix "reference is ambiguous" error