Fix issue caused by duplicate js