Fix rid to be int