Bugfix open/close
bugfix open/close