fixed refressh  issue on logout