minor fix in updateData