Fixed bug in offline mode.