Fix a bug on Chrome 30