Fixes a case where a mismatch could occur.