fixed argument order to fillByteArray to comply with documentation