how to prevent casting defects in your products the