fix incompatibility with Chrome/Android