I love this type of question! Not! 😎
A question to a problem, described in one sentence and very generically, without any code to look at and any idea what you programmed. All we can do is assume that you did a grave beginners bug somewhere, but I would have no idea where to start to advice you.