fix minor bug in pail