Fixes a bug in Rails ERB Templates