Fix settings loading that broke the session restauration mechanism