fix error after creating trait file