fixed js incompatibility