Fix to serializer

Signed-off-by: Raphael Lullis <raphael@lullis.net>