hotfix can't set header after they are send