fix transform bug in callbacks mode