fixed indexing error in mwmkld