fix piece bounds