Fixed setBytes method.