fix global Buffer check