fixing header title calculation - "or" will produce boolean