make sure close trigger bufenter event