fixes cookie data issue in self