Fix for calculating expect character count