Fix variable attribute to correctly return value.