CAROLINE-49: Fix several crashes and config errors.