Fix Ember detection