Without this fixes, extension doesn't work

Without this fixes, extension doesn't work. You have done on example a mistake in using hook :).
Fixes are made by Astro. You should apply this changes and thank to him! :)