bugfixes in post.py