fix element hook