Fix type creation