Finally fixed the layoutHook type