fix trait invocation