Confusion regarding Option Profit


Today, I made a profit of 4627 by selling Nifty call and put option, and same is mentioned in the funds page.

However, on the funds I can see a realized profit of 2627 (something) and remaining amount is mentioned as negative balance in option premium section.

What’s this confusion.

Screenshot attached.

Anyone could help in understanding this!