fixed bug in sesolve measurement calculation