fixed transform bug