fixed mc bug