fix bugs of secondary selector