Fixed exception being thrown in Settings class