Fix row hiding bugs