Add a try/catch when parsing localStorage + fix margin no_history