fix bug in sel