fixes transform bug