fix command hook