fixing conditional for header regions