Fixed emptying the buffer while can