Fix errors interface

The serialization module was trying to loop through errors, but couldn't get to them because the interface was off. This should fix that issue.