fixing bug with header