fixed bug in MDM rgp6