Fix type field