bug fix for writeTag from rot cluttered version