remove hooks bugfix