Issue with assigning to uninitialized vars