bug fix

fixed max race time bug, only happen in very rare occasions.