Fix chrome 31+ bug