How does this happen ?

How do you prevent this from happening ?