Fix rest headers create