fixed get previous hint logic bug