Updated .$ references to ~