fix MC simulation