Fixing bug introduced with 'completed item' code.