Bug fix to allow header to be deleted