Fix post swapping on edit
Should fix #9