fix scope for _getLocalization