Fix two bugs (fail to see that VBox is up; fail to check client type)