fix hidden/visible unit init