correct the type