It’s very difficult to help you with this without having access to the code. Could you please provide a minimal sample application to reproduce this? Please also include which steps are necessary to reproduce the error, and what the expected output is.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.