Fix inverse_transform