Fixed last checked for update code