Solve problems with type closing