Fix ratId