fix for id of null serializing as 0