fix post set bug, fixes #768