Fixed bug in recording hint function.