fixed Detect.add_classes so it doesn't loop through plugins when it doesn't need to