check invalid selection