fix double pointer