Fix 'success' calculation