flush leftover place at the end of scanning