fix issue in hook server