Fixed broken hooks