Fix for get locality error