bugfix in offline mode