Fixed tmp file hook.

So embarrassing.