Fixed side effects in serializer params' passing