selection parsing bug fixed