fix last update and fix last refresh