fix transform bug in stringify()