fix typing attributes