Fixed bug with closing sysin