Change clearBuffer kernel