Fix and test for context binding bug when calling every hook