Fix / and ~ issues.