fixed offline usage problem