Hot fix data.length
Hotfix data.length