sapB: valid() fix #959