fixed loop transform bug