The fact is that ranking losses will happen. The best way to ensure your website stays in decent shape, even in spite of ranking losses, is to focus on quality content and site functionality.