Fixed issue with lastSDMState