Fixed duplicating post bug on edit