Renamed category to type on the backend.