Fixed collapsed outputs bug

It wasn't reading transforms correctly.