Fix data.js save issue