fixes in rc_buffer resize