Fixed a bug in show/hide attribute.