Fix thumbnail bug on Chrome 27