Fixed bug with updating wrong selector