hideHeader misplacement bug fixed

Solves #1995.