Fixed a bug that locale filter was not filtering corrently.