fix for bug with pieces that are shallow.