Fix category parsing on metadata