Fixing open/close command