Fixed undetected state integrity issue with duty status logic.