corrected the behavior of enable disable preference checkbox

Change-Id: I9cd4eb5e67ebe60ee672df35c6ae175012127f75