Fix Error When Local Storage is disabled