Fixes the unresponsive switch control