New function to check if a token has already been fixed in the current cycle
Fixed missing bracket errors