- fix bug in open / close functionality