Fixed bugs in condition transformer and added redundant bracket removal.