Fixes a couple of bugs with the new hint element.