fixed updateData script