small fix on rthsort