fixes bug in reading in transforms