fixed issue in tagging process