Fixed duration overflow bug