fix getDeviceStorages undefined problem