fixes https://github.com/Polymer/polymer/issues/584