And how to prevent it.