Fix for grid_widget set_value() function.