Fix HackHandler with setTrace