fix default timeout check, fixes #2171