Fixes exception cause in commit cf91acb