fixed no free buffer error