fix a bug in block locale invocation