fixing +1 error in unfolding MSD