How to Avoid Bad Planning