Fix bug with post ordering