fixed bad hooks