patched a bug with ember-templates