Fixed bug in MVM algorithm.