Fix modal closing bug for postcreate