lastUpdate check corrected