add hook for fix-frame