Bug fix: fixed exit code in rsi