Fix locales bug

This change fixes the warning message for locales