fix post (de)serialization