fixed a bug in hidden.