fixed set_variable