fixed tagging bug