fix bugs with pile