fix setup hook