fix wrong exit code