fix open/close Switch