close function bug fixed
rebuild