Library director says mistake was made in book 'weeding'