Fix type spec