fixed an error with the transform