How do I stop this from happening