swap file delete fix