fix browser incompatibility