change settings-checkbox  if-statement for multiple usages

With the current if statement, the result is always true if more then one bars are on one site. 
So I changed the statement to only the active element.