Fixed an issue where autoform hooks are attached multiple times if you use routes