reset wasFailed flag