fix transform detection