Fix pointer in api