fix chrome compatibility