fix bug in star_buffer