fix timeout calculation
v0.3.0