fix chrome plugin bugs