Fix order of applying transforms