simple fix for hp/lp struct serializer