Fix constant transform bug