Fixed runtime errors in config and init file