fixed savePersistentDevice