Fixed a bug with header synch