fix data type for rights field