Fixed bug where value was not getting passed along