Fix type field of contacts