but how to prevent it and why does it do that ?