Fix error in build

We are using switch instead checkbox