Got it fixed!! Thanks.

The data wasn’t being stored properly in database.