Fixed check for 'settings' to be done before it's needed