Overcooking the potatoes can cause them to release too much liquid, as can cutting them too thin.