Fixing endpoint hook configuration that had not the right function format