Fix bug in latest EmberJS