Added missing setting error handling