fix bug wih selector