should fix bug referenced in #11 with MSD computation