Fix openOfflineDevice