fix transition bug on header