removed unnecessary ByteArray.position = 0

Change-Id: Idb37cadc9eeeccecfd767dcf53959df520f74218