fixed bug calling methods on user locations when localStorage is not supported