Fixed local storage detection.