clear buffer if no length