fix polymer bug firefox/safari