Defences of accused are not considered while passing judgment

Respected advocate brothers, my client ,being accused in 138 N.I.Act case , and complainant moved compromise pursis at the stage of cross examination of complainant. thereafter, complainant wanted not to follow the said pursis. therefore, my client, accused, refused to follow compromise and informed the court to concuct trial. But court says that my client, accused, once accepted compromise that means he accepts the guilt and court further says that court is going to pass conviction order on basis of compromise pursis without considering the facts, defences. my question is can court pass conviction on basis of compromise pursis without considering the defences of accused? little facts of the case is accused gave 6 blanks signed cheques in 2009 for bank loan security but the complainant being agent misused the said 4 blanks signed cheques out of 6.2 cheques have been kept with him(complainant).complainant filed complaint under 138 after dihonour of cheque against my client. said cheques were never given to complainant for any legal debt. during his cross examination in the effort of court compromise between complainant and accused took place and to that effect compromise pursis passed before court.but next day complainant did not return 2 blank cheques which he has and therefore, accused refusedto compromise and asked the court for trial.. in this situation what to do to save accused. as he is innocent.