fix to null passed in lcoale variable