bug with data() initialization fixed