fix tag bug that occured when loading a post show page