Fixed error cases in mpicoder.