r-replace updated

i key was not working with r-replace, the has been fixed.