Can you share a screenshot of the whole functionality being used? It is hard to say what is happening in code without it.