fixed reference to a class in new hook