fixing assignment

was not assigning the error to the struct
for tracking, this is now fixed