fix crashes in offline mode because of unbound swipelayout