fix unsafe header error