Fixed problem with ~