Resolution:
As this error implies that your program logic contains a mistake, you probably should recode.