Fixed bug when no settings object in database