time-critical update.js bug fixed