fix access to changedAttributes and typo in nls/pt