Fix timeout bug

Signed-off-by: Hao Liu <hliu@redhat.com>