fixed an issue with open(el)
fixed an issue with local storage detection