fixed bug in hidden.scala