Fixed NaN problem on blur