fix bug in setData data deletion