Fix empty tag bug on post update