Fix the type ref