Fixed a bug of close button