fix tmp bug