Fix setValue scope