fix post flag
fixes #827