Fixed missing initialization in trait transformation