fixed a bug that prevent update offline