fix empty header issue