small bugfix for serializer