Fixed reference error with uw.loc which should be just loc.