Set local variable correctly.