bugfix in check post length