fix bug edit post