location null fix