Fix bug in MC production