Reset the 'fail' flag before processing any new item