fixed bug close