sync.js fix