Fix chan_structure integrity check