fixed bugs related to appending empty pools