fix pretest