fixed nullpointer in update. Added TagElement as comment