fixed constructor issue to be compatible with polymer prolyfill