fixed bug #477835 for the mcs port