fixed bug with switches