fix sneaky shell variable bug