Serialization info null reference bugfix