fixed the well know bug in data.js module