Fix wrong value being applied