Update HTE.pm

Fix register_function