Fixing not actually setting value