Fix errors in {new, edit}post