Little bug fixed in openclose