Solve error of type