fix bug select