weird behavior with select?