fixed issues with dip switches