fixed a defect in simulation.R when calculating AUC