fixed a bug in ElementHelper around hidden.