Fixed willDestroyElement hook