Removed unnecessary duplicate restoring of localstorage parameters.