fixed bug with . subsitution in rg check