Fix bug in details polyfill init.