Test and fix file hooking.

P.S. Next time test before commit =\