Fix flaky test and update uglified code.