fixing replace of {arg<index>}