Fix id exceptions on chrome