Fixes a bug where the gsub! will cause some problems