Fix RString ptr use