foo_name, logic fix bug