fix setupPreConditions