fixed bug w/ buffer retention