Debuging selection errors