Fix bug in AssignRaw