fixed bug double flush