fixed clearing buffer cache bug