Fixed crash in MCIndexSet (fixed #357)