Fix error in edit post