filter out nulls when deserializing