fixed bug in header update and empty channel path