Fix NPE on hook page