Solved the type problem