Fixed bug with locality.