fix bug with header