fix bug: call locale function as method