Fixed multi-selection issue (fix #260)