Fixed bug #2 with modify header error