Exception in offline mode fixed