Fix bugs with JsonIgnore