set timeout 5hrs and fix a incorrect result bug