Fix fatal error and params mixup.