Fixed a bug with ~ quoting