Replace ~ with compl