Fixed bug with header