Fix bug in sund serializer