Fixes problem with gsub