Fixed type/view select bug