fix default timeout check, fixes #2171 and #2523