debug some selection problems