fixed ~ dir