Hopefully fix autoclosing