workaround to fix tmp dir error