bugfix on serializer