Fix effect of a double gsub