OI happens when certain genes are not working properly. The genes that can cause OI play a role in how the body makes collagen. Collagen is a protein that helps make bones strong.