fix hint insertion