Fix js runtime issue.