Add {} behind ~X; now it becomes ~X{}