Update gems
Improve hook compatibility.