fix temporary files