fix typeerror if settings arent defined yet