bugfix on empty locale