fix max for tagging.