Fixes https://github.com/Polymer/polymer/issues/522