Fix small bug in SDEK calc