Fix invalid variable access.