Fixed timeout() placement to timeout before navigation.