Fixed stupid enum ordering issue in scaler