corrected bug in serializer that created duplicate light values