fixed safari incompatibility