fixed problem with lastUpdate not being updated