TinderPile Buildings

I’m making a matching app for rooms, and the first slide comes back after the first slide. This happened when I made changes to the room database. It did not happen when I made changes to the user database.
I would appreciate it if someone could tell me how to solve this problem.