rgp bug fix